# 从键盘输入一个字符序列，统计，大写字母，小写字母，数字，其它字符各出现次数，将次数保存到字典中。
# list=[]   list[0]
def character_statistics(character):
    character_dict = {"capital_letter":0,"small_letter":0,"number":0,"other":0}
    for i in range(0,len(character)):
        if character[i].isupper():
            character_dict["capital_letter"] += 1
        elif character[i].islower():
            character_dict["small_letter"] += 1
        elif character[i].isdigit():
            character_dict["number"] += 1
        else:
            character_dict["other"] += 1
    return character_dict

if __name__ == "__main__":
    print(character_statistics("AAbbcc+-你好123"))